Fix error message text on invalid longitude.
authorrobertl <robertl>
Tue, 27 Mar 2007 18:50:53 +0000 (18:50 +0000)
committerrobertl <robertl>
Tue, 27 Mar 2007 18:50:53 +0000 (18:50 +0000)
waypt.c

diff --git a/waypt.c b/waypt.c
index bc076ff26d3255601cdd638c45ddd88fd1dcbf80..7c8f40487769e7d6a83600e36f093638897a9a01 100644 (file)
--- a/waypt.c
+++ b/waypt.c
@@ -99,7 +99,7 @@ waypt_add(waypoint *wpt)
        if ((wpt->latitude < -90) || (wpt->latitude > 90.0))
                fatal ("Invalid latitude %f in waypoint.\n", wpt->latitude);
        if ((wpt->longitude < -180) || (wpt->longitude > 180.0))
-               fatal ("Invalid longitude %f in waypoint.\n", wpt->latitude);
+               fatal ("Invalid longitude %f in waypoint.\n", wpt->longitude);
 
        /*
         * Some input may not have one or more of these types so we